import {request} from "../../request";

export function getAllocationstrategyById(id){
    return request({
        url:`/lswms/allocationstrategy/${id}`,
        method:'get'
    })
}


export function getAllocationstrategyPage(data){
    return request({
        url:'/lswms/allocationstrategy/page',
        method:'get',
        data:data
    })
}

export function putAllocationstrategy(data){
    return request({
        url:'/lswms/allocationstrategy',
        method:'put',
        data:data
    })
}
export function postAllocationstrategy(data){
    return request({
        url:'/lswms/allocationstrategy',
        method:'post',
        data:data
    })
}

export function deleteAllocationstrategy(data){
    return request({
        url:`/lswms/allocationstrategy`,
        method:'delete',
        data:data
    })
}
export function exportAllocationstrategy(data){
    return request({
        url:`/lswms/allocationstrategy/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
